package com.hawk.eye.framework.utils;

import org.springframework.lang.Nullable;
import org.springframework.util.ObjectUtils;

import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;

/**
 * @className: ObjectUtil
 * @description:
 * @author: salad
 * @date: 2022/10/6
 **/
public class ObjectUtil extends ObjectUtils {


    public static boolean isNotEmpty(@Nullable Object obj) {
        return !isEmpty(obj);
    }

    public static boolean isAnyEmpty(Object ...objects){
        if (isEmpty(objects)) {
            return true;
        }
        for (Object object : objects) {
            if (isEmpty(object)){
                return true;
            }
        }
        return false;
    }

}
